Importing

Import the necessary libraries

Processing images

Loading, converting to monochrome and then saving as SVG files

Plot an example MNIST image

Processing the paths and visualizing them

Perfrom MC simulation with different radiuses

Note: this may take a while

Plot Ishihara-style MNIST images

Plot Ishihara-style MNIST images for the figure 8 with different colors and plates

Plot Ishihara-style MNIST image (for Plate 1)

Plot Ishihara-style MNIST images with all Ishihara plates + the baseline plates

Plot Ishihara-style MNIST images for the figure 8 with all Ishihara plates + the baseline plates: only dots, only circles and random colors plate

Ishihara-style MNIST images with manipulations

Daltonize the figures and simulate color blindness plates

Example for generating plate with XOR transformation and Protanopia simulation plate